package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lyh on 2017-04-11.
 */
////@Entity
////@Table(name = "jord_attachment", schema = "", catalog = "jbmcore")
////@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
public class JordAttachmentEntity extends ICtrl implements Serializable {
    private int jordAttId;
    private int jorderId;
    private String attType;
    private String attText;
    private String attPath;
    private String attOrgname;
    private String status;
    private String memo;
    private Timestamp createDate;
    private int createId;

    ////@Id
    ////@Column(name = "jord_att_id")
    ////@GeneratedValue
    public int getJordAttId() {
        return jordAttId;
    }

    public void setJordAttId(int jordAttId) {
        this.jordAttId = jordAttId;
    }

    ////@Basic
    ////@Column(name = "jorder_id")
    public int getJorderId() {
        return jorderId;
    }

    public void setJorderId(int jorderId) {
        this.jorderId = jorderId;
    }

    ////@Basic
    ////@Column(name = "att_type")
    public String getAttType() {
        return attType;
    }

    public void setAttType(String attType) {
        this.attType = attType;
    }

    ////@Basic
    ////@Column(name = "att_text")
    public String getAttText() {
        return attText;
    }

    public void setAttText(String attText) {
        this.attText = attText;
    }

    ////@Basic
    ////@Column(name = "att_path")
    public String getAttPath() {
        return attPath;
    }

    public void setAttPath(String attPath) {
        this.attPath = attPath;
    }

    ////@Basic
    ////@Column(name = "att_orgname")
    public String getAttOrgname() {
        return attOrgname;
    }

    public void setAttOrgname(String attOrgname) {
        this.attOrgname = attOrgname;
    }

    ////@Basic
    ////@Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    ////@Basic
    ////@Column(name = "memo")
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    ////@Basic
    ////@Column(name = "create_date")
    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    ////@Basic
    ////@Column(name = "create_id")
    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }

    ////@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        JordAttachmentEntity that = (JordAttachmentEntity) o;

        if (createId != that.createId) return false;
        if (jordAttId != that.jordAttId) return false;
        if (jorderId != that.jorderId) return false;
        if (attOrgname != null ? !attOrgname.equals(that.attOrgname) : that.attOrgname != null) return false;
        if (attPath != null ? !attPath.equals(that.attPath) : that.attPath != null) return false;
        if (attText != null ? !attText.equals(that.attText) : that.attText != null) return false;
        if (attType != null ? !attType.equals(that.attType) : that.attType != null) return false;
        if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
        if (memo != null ? !memo.equals(that.memo) : that.memo != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;

        return true;
    }

    ////@Override
    public int hashCode() {
        int result = jordAttId;
        result = 31 * result + jorderId;
        result = 31 * result + (attType != null ? attType.hashCode() : 0);
        result = 31 * result + (attText != null ? attText.hashCode() : 0);
        result = 31 * result + (attPath != null ? attPath.hashCode() : 0);
        result = 31 * result + (attOrgname != null ? attOrgname.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (memo != null ? memo.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + createId;
        return result;
    }
}
